<!DOCTYPE html>
<html>

<include file="./Application/Admin/View/common/css-js.html"/>
<style type="text/css">
    div.yahoo2{padding:3px;font-size:0.85em;margin:3px;font-family:tahoma,helvetica,sans-serif;text-align:center;}
    div.yahoo2 a{border:#ccdbe4 1px solid;padding:2px 8px;background-position:50% bottom;color:#0061de;margin:0 3px 0 0;text-decoration:none;}
    div.yahoo2 a:hover{border:#2b55af 1px solid;background-image:none;color:#fff;background-color:#3666d4;}
    div.yahoo2 a:active{border:#2b55af 1px solid;background-image:none;color:#fff;background-color:#3666d4;}
    div.yahoo2 span.current{padding:2px 6px;font-weight:bold;color:#000;margin:0 3px 0 0;}
    div.yahoo2 span.disabled{display:none;}
    div.yahoo2 a.next{border:#ccdbe4 2px solid;margin:0px 0px 0px 10px;}
    div.yahoo2 a.next:hover{border:#2b55af 2px solid;}
    div.yahoo2 a.prev{border:#ccdbe4 2px solid;margin:0px 10px 0px 0px;}
    div.yahoo2 a.prev:hover{border:#2b55af 2px solid;}
    
</style>
<body class="gray-bg">
<div style="padding-left:1%">
    <br>
    <h2>奖金明细列表</h2>
    <span style="display:block;padding-bottom:0.5%;font-size:18Px">奖金池入账笔数:  <span class='text-danger'>{$count}</span>
    <span style="display:block;padding-bottom:0.5%;font-size:18Px">奖金池金额总数:  <span class='text-danger'>{$money}</span>
    </span>
    <div style="border:1px solid #CCCCCC;"></div>
</div>
<form method="post" action="/index.php/admin/index/search2">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="btn-group btn-group-sm" style="float:left;">
            <button class="btn btn-default btn-sm" type="button" data-toggle="refresh"><a href="/index.php/admin/index/commissionlist"><i class="fa fa-refresh"></i></a></button>

        </div>
        <div style="float:left">

            <select onchange="selectChange(this.options[this.selectedIndex].text)" id="select" onchange="selectChange()" name="select" style="width:100px;height:30px;padding:0 5px;">
                <option value="">请选择</option>
                <option value="id">id</option>
                <option value="id">入账人id</option>
                <option value="tel">入账人手机号</option>
                <option value="money">入账金额</option>
                <option value="money">入账时间</option>
                <input type="hidden" id="select_content" name="select_name">
            </select>
            <div style="float:right">
                <input type="text"  name="keyword" value="" style="width:300px;height:30Px" placeholder="请输入关键词">
                <span>
            <button class="btn btn-sm btn-primary" type="submit" id="search" onclick="searchuser()"> 搜索</button>
        </span>
            </div>

        </div>
    </div>

</form>
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>用户列表</h5>
                </div>
                <div class="ibox-content">

                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                        <thead>
                        <tr><th data-toggle="true">id</th>
                            <th data-toggle="true">入账人id</th>
                            <th>入账人手机号</th>
                            <th>入账金额</th>
                            <th>入账时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody >
                        <volist name="user" id="vo">
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.uid}</td>
                                <td>{$vo.tel}</td>
                                <td>{$vo.money}</td>
                                <td>{$vo.time}</td>
                                <td>
                                    <a href="/index.php/admin/index/delcommission?id={$vo.id}">删除</a>
                                </td>
                            </tr>
                        </volist  >
                        </tbody>
                        <tfoot>
                        <td colspan="20" style="text-align: center;font-size: 15px">
                            <div class="yahoo2">{$page}</div> 
                        </td>
                        </tfoot>
                    </table>

                </div>
            </div>
        </div>
    </div>
</div>
<script>
    $(document).ready(function() {

        $('.footable').footable();

    });
    function selectChange(select)
    {
        document.getElementById("select_content").value=select;
    }
    function searchuser()
    {
        var select = document.getElementById("select");
        var index = select.selectedIndex;
        var value = select.options[index].value;
        if(value=="")
        {
            document.getElementById("search").disabled="ture";
        }
    }
</script>

</body>

</html>
